﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012DF RID: 4831
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncLineupNotify : IMessage<SyncLineupNotify>, IMessage, IEquatable<SyncLineupNotify>, IDeepCloneable<SyncLineupNotify>, IBufferMessage
	{
		// Token: 0x17003D0B RID: 15627
		// (get) Token: 0x0600D86A RID: 55402 RVA: 0x00244603 File Offset: 0x00242803
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncLineupNotify> Parser
		{
			get
			{
				return SyncLineupNotify._parser;
			}
		}

		// Token: 0x17003D0C RID: 15628
		// (get) Token: 0x0600D86B RID: 55403 RVA: 0x0024460A File Offset: 0x0024280A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncLineupNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003D0D RID: 15629
		// (get) Token: 0x0600D86C RID: 55404 RVA: 0x0024461C File Offset: 0x0024281C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncLineupNotify.Descriptor;
			}
		}

		// Token: 0x0600D86D RID: 55405 RVA: 0x00244623 File Offset: 0x00242823
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncLineupNotify()
		{
		}

		// Token: 0x0600D86E RID: 55406 RVA: 0x00244638 File Offset: 0x00242838
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncLineupNotify(SyncLineupNotify other) : this()
		{
			this.lineup_ = ((other.lineup_ != null) ? other.lineup_.Clone() : null);
			this.reasonList_ = other.reasonList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D86F RID: 55407 RVA: 0x00244689 File Offset: 0x00242889
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncLineupNotify Clone()
		{
			return new SyncLineupNotify(this);
		}

		// Token: 0x17003D0E RID: 15630
		// (get) Token: 0x0600D870 RID: 55408 RVA: 0x00244691 File Offset: 0x00242891
		// (set) Token: 0x0600D871 RID: 55409 RVA: 0x00244699 File Offset: 0x00242899
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupInfo Lineup
		{
			get
			{
				return this.lineup_;
			}
			set
			{
				this.lineup_ = value;
			}
		}

		// Token: 0x17003D0F RID: 15631
		// (get) Token: 0x0600D872 RID: 55410 RVA: 0x002446A2 File Offset: 0x002428A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<SyncLineupReason> ReasonList
		{
			get
			{
				return this.reasonList_;
			}
		}

		// Token: 0x0600D873 RID: 55411 RVA: 0x002446AA File Offset: 0x002428AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncLineupNotify);
		}

		// Token: 0x0600D874 RID: 55412 RVA: 0x002446B8 File Offset: 0x002428B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncLineupNotify other)
		{
			return other != null && (other == this || (object.Equals(this.Lineup, other.Lineup) && this.reasonList_.Equals(other.reasonList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D875 RID: 55413 RVA: 0x0024470C File Offset: 0x0024290C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.lineup_ != null)
			{
				num ^= this.Lineup.GetHashCode();
			}
			num ^= this.reasonList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D876 RID: 55414 RVA: 0x00244756 File Offset: 0x00242956
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D877 RID: 55415 RVA: 0x0024475E File Offset: 0x0024295E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D878 RID: 55416 RVA: 0x00244768 File Offset: 0x00242968
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.lineup_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.Lineup);
			}
			this.reasonList_.WriteTo(ref output, SyncLineupNotify._repeated_reasonList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D879 RID: 55417 RVA: 0x002447B8 File Offset: 0x002429B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.lineup_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Lineup);
			}
			num += this.reasonList_.CalculateSize(SyncLineupNotify._repeated_reasonList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D87A RID: 55418 RVA: 0x0024480C File Offset: 0x00242A0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncLineupNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.lineup_ != null)
			{
				if (this.lineup_ == null)
				{
					this.Lineup = new LineupInfo();
				}
				this.Lineup.MergeFrom(other.Lineup);
			}
			this.reasonList_.Add(other.reasonList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D87B RID: 55419 RVA: 0x00244871 File Offset: 0x00242A71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D87C RID: 55420 RVA: 0x0024487C File Offset: 0x00242A7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 66U)
				{
					if (num != 96U && num != 98U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.reasonList_.AddEntriesFrom(ref input, SyncLineupNotify._repeated_reasonList_codec);
					}
				}
				else
				{
					if (this.lineup_ == null)
					{
						this.Lineup = new LineupInfo();
					}
					input.ReadMessage(this.Lineup);
				}
			}
		}

		// Token: 0x0400562B RID: 22059
		private static readonly MessageParser<SyncLineupNotify> _parser = new MessageParser<SyncLineupNotify>(() => new SyncLineupNotify());

		// Token: 0x0400562C RID: 22060
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400562D RID: 22061
		public const int LineupFieldNumber = 8;

		// Token: 0x0400562E RID: 22062
		private LineupInfo lineup_;

		// Token: 0x0400562F RID: 22063
		public const int ReasonListFieldNumber = 12;

		// Token: 0x04005630 RID: 22064
		private static readonly FieldCodec<SyncLineupReason> _repeated_reasonList_codec = FieldCodec.ForEnum<SyncLineupReason>(98U, (SyncLineupReason x) => (int)x, (int x) => (SyncLineupReason)x);

		// Token: 0x04005631 RID: 22065
		private readonly RepeatedField<SyncLineupReason> reasonList_ = new RepeatedField<SyncLineupReason>();
	}
}
